package com.yuzhi.master.drainAlarmRule.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.yuzhi.common.annotation.DictFormat;
import com.yuzhi.master.drainAlarmRule.domain.bo.DrainAlarmConditionBo;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 报警规则展示对象 drain_alarm_rule
 */
@Data
@ExcelIgnoreUnannotated
public class DrainAlarmRuleVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    //业务字段
    private String alarmType;

    @DictFormat(defaultValue = "drainage_lb")
    private String facilityType;

    private String deviceIds;

    private String deviceName;

    private String receiverIds;

    private Integer intervalValue;

    private String intervalUnit;

    private String ruleType;

    private Boolean ruleStatus;

    private Boolean transferWork;

    private String handlerPerson;

    /**
     * 是否l发送短信（1=是 0=否）
     */
    private String sendMessage;

    // 报警规则条件表
    private List<DrainAlarmConditionBo> conditions;

    // 基础字段
    private String creator;

    private String creatorName;

    private LocalDateTime createTime;

    private String updater;

    private String updaterName;

    private LocalDateTime updateTime;

    private Integer deleted;
}
